<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta name="layout" content="mobile">
    <title>Create New Group</title>
  </head>
  <body>
      
      <g:hasErrors>
        <div class="errors">
          <g:renderErrors bean="${group}" as="list" />
        </div>
      </g:hasErrors>

      <h2>New Group</h2>
      <g:form action="createNew">
        <dl>
          <g:hiddenField name="facility.name" value="${facility?.name}"/>
          <dt>Name: </dt>
          <dd><g:textField name="groupName" value="${group?.groupName}"/></dd>
          <dt>Summary: </dt>
          <dd><g:textArea id="attributeDescription" name="summary" value="${group?.summary}" width="1000px" height="1000px"/></dd>
        </dl>
        <br><g:submitButton name="create" value="Create"/></br>
      </g:form> 
      
      <g:form controller="facility" action="view">
        <g:hiddenField name="name" value="${facility.name}"/>
        <g:submitButton name="submit" value="Facility" data-icon="back"/>
      </g:form>

  </body>
</html>
